- entry_type: invariant_set
  metadata:
    format_version: "2.0"
    uuid: 76fccf7e-3e43-4148-bfb1-0364a3e446cc
    creation_time: 2025-03-22T11:33:32Z
    producer:
      name: Goblint
      version: heads/master-0-g66dff5a90-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp.json'' ''--disable'' ''witness.graphml.enabled''
        ''--sets'' ''ana.specification'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/valid-memsafety.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i: bed480fb9329cf4d2bde4e192428cf2ff72174b29c5e6148c18915395bc76ca3
      data_model: ILP32
      language: C
      specification: 'CHECK( init(main()), LTL(G valid-free) )

        CHECK( init(main()), LTL(G valid-deref) )

        CHECK( init(main()), LTL(G valid-memtrack) )'
  content:
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 6020
        column: 5
        function: main
      value: i == 3U
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 6020
        column: 5
        function: main
      value: ((i == 3U || i == 2U) || i == 1U) || (0 == i && i == 0U)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 4841
        column: 9
        function: vatomic32_await_eq
      value: c == 0U
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 4841
        column: 9
        function: vatomic32_await_eq
      value: c == (vuint32_t )0
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 5996
        column: 5
        function: run
      value: ((j == 1 && j == 1) && (((tid == 0U && i == 2) && (unsigned int )arg
        == 0U) || ((i == 1 && ((tid == 0U || tid == 1U) || tid == 2U)) && (((unsigned
        int )arg == 0U || (unsigned int )arg == 1U) || (unsigned int )arg == 2U))))
        || ((((0 == i && arg == tid) && i == 0) && ((tid == 0U || tid == 1U) || tid
        == 2U)) && (((unsigned int )arg == 0U || (unsigned int )arg == 1U) || (unsigned
        int )arg == 2U))
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 568
        column: 10
        function: verification_spin_end
      value: v == 0 || v == 1
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 5405
        column: 10
        function: clhlock_release
      value: lock == & lock
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 6035
        column: 5
        function: init
      value: initial.locked._v == 0U
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 6035
        column: 5
        function: init
      value: ((i == 3 || i == 2) || i == 1) || (0 == i && i == 0)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 6003
        column: 9
        function: run
      value: j == 1
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 6003
        column: 9
        function: run
      value: ((((tid == 0U && i == 1) && (unsigned int )arg == 0U) && (j == 1 || (0
        == j && j == 0))) || (((i == 0 && j == 1) && ((tid == 0U || tid == 1U) ||
        tid == 2U)) && (((unsigned int )arg == 0U || (unsigned int )arg == 1U) ||
        (unsigned int )arg == 2U))) || ((((0 == j && i == 0) && j == 0) && ((tid ==
        0U || tid == 1U) || tid == 2U)) && (((unsigned int )arg == 0U || (unsigned
        int )arg == 1U) || (unsigned int )arg == 2U))
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 6015
        column: 5
        function: main
      value: ((i == 3U || i == 2U) || i == 1U) || ((0 == i && i == 0U) && initial.locked._v
        == 0U)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 4840
        column: 5
        function: vatomic32_await_eq
      value: c == 0U
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 4840
        column: 5
        function: vatomic32_await_eq
      value: c == (vuint32_t )0
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 4840
        column: 5
        function: vatomic32_await_eq
      value: ret == o || ((((0 == o && c == ret) && ret == 0U) && ret == (vuint32_t
        )0) && o == 0U)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 573
        column: 10
        function: verification_loop_bound
      value: (bound == 4U && bound == (vuint32_t )4) || (bound == 2U || bound == 3U)
      format: c_expression
  - invariant:
      type: loop_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/libvsync/clhlock.i
        line: 5998
        column: 9
        function: run
      value: (((((tid == 0U && i == 1) && j == 1) && (unsigned int )arg == 0U) &&
        (j == 1 || (0 == j && j == 0))) || (((i == 0 && j == 1) && ((tid == 0U ||
        tid == 1U) || tid == 2U)) && (((unsigned int )arg == 0U || (unsigned int )arg
        == 1U) || (unsigned int )arg == 2U))) || (((((((0 == i && 0 == j) && arg ==
        tid) && i == 0) && i == j) && j == 0) && ((tid == 0U || tid == 1U) || tid
        == 2U)) && (((unsigned int )arg == 0U || (unsigned int )arg == 1U) || (unsigned
        int )arg == 2U))
      format: c_expression
